-- GENERATED SPELL FOR [Sunreaver Scout] --


function spell0_30233(pUnit, Event) --@Concussive Shot,n/a--
pUnit:FullCastSpellOnTarget(17174,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30233', 3273, 1)
end

function spell1_30233(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(14443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30233', 655, 1)
end

function spell2_30233(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30233', 624, 1)
end

function Sorts_30233(pUnit, Event)
local choix_sorts_30233 = math.random(0, 2)
if choix_sorts_30233 == 0 then
pUnit:RegisterEvent('spell0_30233', 1, 1)
end
if choix_sorts_30233 == 1 then
pUnit:RegisterEvent('spell1_30233', 1, 1)
end
if choix_sorts_30233 == 2 then
pUnit:RegisterEvent('spell2_30233', 1, 1)
end
end

function mob30233_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30233', math.random(1500, 3000), 1)
end

function mob30233_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30233_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30233_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30233, 1, 'mob30233_Action')
RegisterUnitEvent(30233, 2, 'mob30233_Leave')
RegisterUnitEvent(30233, 3, 'mob30233_Kill')
RegisterUnitEvent(30233, 4, 'mob30233_Die')
